
$(function () {
    var number=window.location.search;
    function huoqu(str) {
        var reg = /[^\d]/g;
        return str.replace(reg, "");
    }
    var bbb = huoqu(number);
    console.log(bbb);
    function gethome(are) {
    $.ajax({
        url: "http://139.199.157.195:9090/api/getmoneyctrl?productId="+are,
        success: function (canshu) {
            console.log(canshu)
            var html =  template("model",  canshu)
            var html2 = template("model2", canshu)
            $(".main").html(html)
            $(".pinglun").html(html2)
        }
    })
}
    gethome(bbb);
})
